package com.work.washer.aa;

import org.springframework.data.annotation.CreatedDate;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 
 * @TableName goods_class
 */
@Erupt(name = "商品")
@Table(name = "goods_class")
@Entity
public class GoodsClass  extends BaseModel {

    /**
     * 
     */
    @EruptField(
            views = @View(title = "key"),
            edit = @Edit(title = "key" ) //相当于 type = EditType.INPUT
    )
    private String key;

    @EruptField(
            views = @View(title = "名称"),
            edit = @Edit(title = "名称" ) //相当于 type = EditType.INPUT
    )
    private String text;

    /**
     * 
     */
    @EruptField(
            views = @View(title = "创建时间"),
            edit = @Edit(title = "创建时间" )
    )
    @CreatedDate
    private Date createTime;

}